<basics2:ChildWindow x:Class="Rage.UI.DG_ProgressBar" Title="Processing..."
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:basics="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:basics2="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  mc:Ignorable="d"
  Width="400" SizeToContent="Height" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow">

  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <ProgressBar Name="PB_Progress" Margin="4" Height="26" />
    <TextBlock x:Name="TB_Perc" Text="File 0 of 0 (0%)" TextWrapping="Wrap" Margin="4" Grid.Row="1" />
    <TextBox x:Name="TB_Log" Margin="4" Grid.Row="2" Height="350" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" Visibility="Collapsed" />

    <TextBlock x:Name="statusText" Text="Running" Margin="4" Grid.Row="3" />
    <Button Content="Cancel" Click="BT_Cancel_Click" Grid.Row="3" Width="75" Height="23" HorizontalAlignment="Right" Margin="2,2,2,4"/>
  </Grid>
</basics2:ChildWindow>